<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!');

/**
 * Contao Open Source CMS
 * Copyright (C) 2005-2011 Leo Feyer
 *
 * Formerly known as TYPOlight Open Source CMS.
 *
 * This program is free software: you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program. If not, please visit the Free
 * Software Foundation website at <http://www.gnu.org/licenses/>.
 *
 * PHP version 5
 * @copyright  2012 Andreas Koob 
 * @author     Andreas Koob 
 * @package    piwik_analyser 
 * @license    LGPL 
 * @filesource
 */


/**
 * Class piwik_analyser_module_api
 *
 * @copyright  2012 Andreas Koob 
 * @author     Andreas Koob 
 * @package    Controller
 */
class piwik_analyser_module_api extends frontend
{
	private $functions;
	
	public function __construct()
	{
		$this->import('Database');
		$this->import('Input');
		$this->functions = new piwik_analyser_functions();
	}
	
	public function getFunctions($currentFunction)
	{
		$strFunctions='';
		$strFunctions.='<option value="api.getunit"';if($currentFunction=='api.getunit'){$strFunctions.=' selected="selected"';}$strFunctions.='>getUnit (Not implemented)</option>';
		$strFunctions.='<option value="api.islowervaluebetter"';if($currentFunction=='api.islowervaluebetter'){$strFunctions.=' selected="selected"';}$strFunctions.='>isLowerValueBetter (Not implemented)</option>';
		$strFunctions.='<option value="api.getdefaultmetrictranslations"';if($currentFunction=='api.getdefaultmetrictranslations'){$strFunctions.=' selected="selected"';}$strFunctions.='>getDefaultMetricTranslations (Not implemented)</option>';
		$strFunctions.='<option value="api.getdefaultmetrics"';if($currentFunction=='api.getdefaultmetrics'){$strFunctions.=' selected="selected"';}$strFunctions.='>getDefaultMetrics (Not implemented)</option>';
		$strFunctions.='<option value="api.getdefaultprocessedmetrics"';if($currentFunction=='api.getdefaultprocessedmetrics'){$strFunctions.=' selected="selected"';}$strFunctions.='>getDefaultProcessedMetrics (Not implemented)</option>';
		$strFunctions.='<option value="api.getdefaultmetricsdocumentation"';if($currentFunction=='api.getdefaultmetricsdocumentation'){$strFunctions.=' selected="selected"';}$strFunctions.='>getDefaultMetricsDocumentation (Not implemented)</option>';
		$strFunctions.='<option value="api.getsegmentsmetadata"';if($currentFunction=='api.getsegmentsmetadata'){$strFunctions.=' selected="selected"';}$strFunctions.='>getSegementsMetadata (Not implemented)</option>';
		$strFunctions.='<option value="api.getvisitecommercestatusfromid"';if($currentFunction=='api.getvisitecommercestatusfromid'){$strFunctions.=' selected="selected"';}$strFunctions.='>getVisitEcommerceStatusFromId (Not implemented)</option>';
		$strFunctions.='<option value="api.getvisitecommercestatus"';if($currentFunction=='api.getvisitecommercestatus'){$strFunctions.=' selected="selected"';}$strFunctions.='>getVisitEcommerceStatus (Not implemented)</option>';
		$strFunctions.='<option value="api.getlogourl"';if($currentFunction=='api.getlogourl'){$strFunctions.=' selected="selected"';}$strFunctions.='>getLogoUrl (Not implemented)</option>';
		$strFunctions.='<option value="api.getheaderlogourl"';if($currentFunction=='api.getheaderlogourl'){$strFunctions.=' selected="selected"';}$strFunctions.='>getHeaderLogoUrl (Not implemented)</option>';
		$strFunctions.='<option value="api.getmetadata"';if($currentFunction=='api.getmetadata'){$strFunctions.=' selected="selected"';}$strFunctions.='>getMetadata (Not implemented)</option>';
		$strFunctions.='<option value="api.getreportmetadata"';if($currentFunction=='api.getreportmetadata'){$strFunctions.=' selected="selected"';}$strFunctions.='>getReportMetadata (Not implemented)</option>';
		$strFunctions.='<option value="api.getprocessedreport"';if($currentFunction=='api.getprocessedreport'){$strFunctions.=' selected="selected"';}$strFunctions.='>getProcessedReport (Not implemented)</option>';
		$strFunctions.='<option value="api.get"';if($currentFunction=='api.get'){$strFunctions.=' selected="selected"';}$strFunctions.='>get (Not implemented)</option>';
		$strFunctions.='<option value="api.getrowevolution"';if($currentFunction=='api.getrowevolution'){$strFunctions.=' selected="selected"';}$strFunctions.='>getRowEvolution (Not implemented)</option>';
		return $strFunctions;
	}
	
	public function getQueryCode($function)
	{
		switch($function)
		{
			case 'api.getunit':
				break;
			case 'api.islowervaluebetter':
				break;
			case 'api.getdefaultmetrictranslations':
				break;
			case 'api.getdefaultmetrics':
				break;
			case 'api.getdefaultprocessedmetrics':
				break;
			case 'api.getdefaultmetricsdocumentation':
				break;
			case 'api.getsegmentsmetadata':
				break;
			case 'api.getvisitecommercestatusfromid':
				break;
			case 'api.getvisitecommercestatus':
				break;
			case 'api.getlogourl':
				break;
			case 'api.getheaderlogourl':
				break;
			case 'api.getmetadata':
				break;
			case 'api.getreportmetadata':
				break;
			case 'api.getprocessedreport':
				break;
			case 'api.get':
				break;
			case 'api.getrowevolution':
				break;
			default:
				break;
		}
	}
	
	public function processFunction($function)
	{
		switch($function)
		{
			case 'api.getunit':
				break;
			case 'api.islowervaluebetter':
				break;
			case 'api.getdefaultmetrictranslations':
				break;
			case 'api.getdefaultmetrics':
				break;
			case 'api.getdefaultprocessedmetrics':
				break;
			case 'api.getdefaultmetricsdocumentation':
				break;
			case 'api.getsegmentsmetadata':
				break;
			case 'api.getvisitecommercestatusfromid':
				break;
			case 'api.getvisitecommercestatus':
				break;
			case 'api.getlogourl':
				break;
			case 'api.getheaderlogourl':
				break;
			case 'api.getmetadata':
				break;
			case 'api.getreportmetadata':
				break;
			case 'api.getprocessedreport':
				break;
			case 'api.get':
				break;
			case 'api.getrowevolution':
				break;
			default:
				break;
		}
	}
}

?>